/*
 * @Description: 校验
 * @Author: chenjiaxin
 * @Date: 2022-02-04 18:06:29
 * @LastEditTime: 2022-02-04 18:07:32
 * @FilePath: \super-unit\lib\verify\index.js
 */
/**
 * 校验邮箱
 * @param {*} e_mail 邮箱地址
 * @returns Boolean
 */
const verifyEmail = (e_mail) => {
  const reg = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
  if (reg.test(e_mail)) {
    return true;
  }
  return false;
};

module.exports = {
  verifyEmail
};
